package com.fast.develop.management.resource.emuns;

import com.fast.develop.meta.dm.MetaDomainConstant;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 莫寅
 * @createTime 2022-06-16 22:21
 * @desc：
 */

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ResourceType{
    system_repository("layui-icon-app", false, "system_repository"),

    app_type("icon-develop", false, "app_type"),
    domain_type("domain_type", false, "domain_type"),
    domain_folder("folder", false, "domain_folder"),
    domain_model("modelentity", true, MetaDomainConstant.TYPE),
    domain_model_field("domain_field", true, MetaDomainConstant.Field_TYPE),
    domain_model_field_primary_key("domain_primary_key", true, MetaDomainConstant.FIELD_PRIMARY_KEY),



    ui_flows("folder", true, "ui_flows"),
    ui_flow("page_type", false, "ui_flow"),
    ui_screen("page", false, "ui_screen"),
    ui_block("page", false, "ui_block"),
    ui_page1("page", false, "ui_page1"),
    ui_page2("page", false, "ui_page2"),
    ui_page3("page", false, "ui_page3"),
    ui_page4("page", false, "ui_page4"),


    ;

    private String icon;
    private boolean isMetaData;
    private String metaType;

    ResourceType(String icon, boolean isMetaData, String metaType) {
        this.icon = icon;
        this.isMetaData = isMetaData;
        this.metaType = metaType;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public boolean isMetaData() {
        return isMetaData;
    }

    public void setMetaData(boolean metaData) {
        isMetaData = metaData;
    }

    public String getMetaType() {
        return metaType;
    }

    public void setMetaType(String metaType) {
        this.metaType = metaType;
    }
}
